package com.audi.utils;


import android.app.ProgressDialog;
import android.content.Context;

public class ProgressDialogUtil{
	public ProgressDialog m_DlgProgress;
	public Context mContext;
	public ProgressDialogUtil(Context context) {
		this.mContext =context;
		m_DlgProgress = new ProgressDialog(mContext);
	}
	public void CreateProgressDialog(String strMessage) {
		m_DlgProgress = new ProgressDialog(mContext);
		m_DlgProgress.setTitle(null);
		m_DlgProgress.setMessage(strMessage);
		m_DlgProgress.setIndeterminate(true);
		m_DlgProgress.setCancelable(true);
		m_DlgProgress.show();
	}

	/**
	 * DestroyProgressDialog
	 * 
	 * @see destroy dialog
	 */
	public void DestroyProgressDialog() {
		if (m_DlgProgress != null)
			m_DlgProgress.dismiss();
	}

}
